From: Jasper St. Pierre Date: Mon, 19 Aug 2013 14:43:52 +0000 (-0400) Subject: network: Make the Connect button insensitive when on the current network X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3690 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8460aa7d6a138bcf1b3ab612e84c5897479a2169;p=gnome-shell.git network: Make the Connect button insensitive when on the current network https://bugzilla.gnome.org/show_bug.cgi?id=706136 --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index a06a5ce52..55ae01b53 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -627,7 +627,7 @@ const NMWirelessDialog = new Lang.Class({ }, _updateSensitivity: function() { - let connectSensitive = this._selectedNetwork != null; + let connectSensitive = this._selectedNetwork && (this._selectedNetwork != this._activeNetwork); this._connectButton.reactive = connectSensitive; this._connectButton.can_focus = connectSensitive; },